package com.brillilab.domain.enums.comments;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 分类：1实验，2计划，3课题，4研究内容，5实验流
 */
@Getter
@AllArgsConstructor
public enum CommentsClassifyEnum {

	CHAT("普通聊天", 0), EXPERIMENT("实验", 1), PLAN("计划", 2), TOPIC("课题", 3), TOPIC_DIRECTION("研究内容", 4), TOPIC_TARGET("实验流", 5);

	public String name;
	
	private Integer value;

	public static String getKey(Integer value) {
		for (CommentsClassifyEnum p : CommentsClassifyEnum.values()) {
			if (p.getValue().equals(value)) {
				return p.name;
			}
		}
		return null;
	}
}
